package com.solcoo.customer.ui.setting;

import android.os.Bundle;
import android.widget.RadioGroup;

import com.solcoo.customer.R;
import com.solcoo.customer.model.User;
import com.solcoo.customer.util.CheckUtil.CheckResult;

public class EditSexActivity extends EditBaseActivity {
	RadioGroup editValue;

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.edit_sex);
		editValue = (RadioGroup) findViewById(R.id.edit_value);
		if (Integer.valueOf(oldValue) == User.FEMALE) {
			editValue.check(R.id.female);
		} else {
			editValue.check(R.id.male);
		}
	}

	@Override
	protected String getValue() {
		return findViewById(editValue.getCheckedRadioButtonId())
				.getContentDescription().toString();
	}

	@Override
	protected CheckResult checkValue() {
		return new CheckResult();
	}

}
